package com.weishi.project.api.vo;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

@Data
public class InjuryCountVo {
    //受伤类型
    private String reason;
    //次数
    private int count;
    //开始时间
    private Date startTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InjuryCountVo that = (InjuryCountVo) o;
        return Objects.equals(reason, that.reason);
    }

    @Override
    public int hashCode() {
        return 1;
    }
}
